using Microsoft.VisualBasic;
using Microsoft.VisualBasic.CompilerServices;
using SJVars;
using Spacejock;
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
using yW5Lib;
using yWriter6.My;

namespace yWriter6
{
	[DesignerGenerated]
	public class frmMobiEpub : Form
	{
		private IContainer components;

		[CompilerGenerated]
		[AccessedThroughProperty("Label1")]
		private Label _Label1;

		[CompilerGenerated]
		[AccessedThroughProperty("TabControl1")]
		private TabControl _TabControl1;

		[CompilerGenerated]
		[AccessedThroughProperty("TabPage1")]
		private TabPage _TabPage1;

		[CompilerGenerated]
		[AccessedThroughProperty("TabPage2")]
		private TabPage _TabPage2;

		[CompilerGenerated]
		[AccessedThroughProperty("TabPage3")]
		private TabPage _TabPage3;

		[CompilerGenerated]
		[AccessedThroughProperty("TabPage4")]
		private TabPage _TabPage4;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdCalibrePath")]
		private Button _cmdCalibrePath;

		[CompilerGenerated]
		[AccessedThroughProperty("txtCalibrePath")]
		private TextBox _txtCalibrePath;

		[CompilerGenerated]
		[AccessedThroughProperty("Label2")]
		private Label _Label2;

		[CompilerGenerated]
		[AccessedThroughProperty("txtMobiParam")]
		private TextBox _txtMobiParam;

		[CompilerGenerated]
		[AccessedThroughProperty("txtEpubParam")]
		private TextBox _txtEpubParam;

		[CompilerGenerated]
		[AccessedThroughProperty("Label5")]
		private Label _Label5;

		[CompilerGenerated]
		[AccessedThroughProperty("txtExportName")]
		private TextBox _txtExportName;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdDelete")]
		private Button _cmdDelete;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdSave")]
		private Button _cmdSave;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdPickCover")]
		private Button _cmdPickCover;

		[CompilerGenerated]
		[AccessedThroughProperty("txtBlurb")]
		private TextBox _txtBlurb;

		[CompilerGenerated]
		[AccessedThroughProperty("Label10")]
		private Label _Label10;

		[CompilerGenerated]
		[AccessedThroughProperty("Label9")]
		private Label _Label9;

		[CompilerGenerated]
		[AccessedThroughProperty("txtCoverFile")]
		private TextBox _txtCoverFile;

		[CompilerGenerated]
		[AccessedThroughProperty("Label8")]
		private Label _Label8;

		[CompilerGenerated]
		[AccessedThroughProperty("txtAuthor")]
		private TextBox _txtAuthor;

		[CompilerGenerated]
		[AccessedThroughProperty("Label7")]
		private Label _Label7;

		[CompilerGenerated]
		[AccessedThroughProperty("Label6")]
		private Label _Label6;

		[CompilerGenerated]
		[AccessedThroughProperty("txtTitle")]
		private TextBox _txtTitle;

		[CompilerGenerated]
		[AccessedThroughProperty("dtPubDate")]
		private DateTimePicker _dtPubDate;

		[CompilerGenerated]
		[AccessedThroughProperty("Label3")]
		private Label _Label3;

		[CompilerGenerated]
		[AccessedThroughProperty("cmbExporters")]
		private ComboBox _cmbExporters;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdNew")]
		private Button _cmdNew;

		[CompilerGenerated]
		[AccessedThroughProperty("txtSeriesNumber")]
		private TextBox _txtSeriesNumber;

		[CompilerGenerated]
		[AccessedThroughProperty("Label12")]
		private Label _Label12;

		[CompilerGenerated]
		[AccessedThroughProperty("txtSeriesName")]
		private TextBox _txtSeriesName;

		[CompilerGenerated]
		[AccessedThroughProperty("Label11")]
		private Label _Label11;

		[CompilerGenerated]
		[AccessedThroughProperty("txtMobiISBN")]
		private TextBox _txtMobiISBN;

		[CompilerGenerated]
		[AccessedThroughProperty("lblIsbn")]
		private Label _lblIsbn;

		[CompilerGenerated]
		[AccessedThroughProperty("txtEpubISBN")]
		private TextBox _txtEpubISBN;

		[CompilerGenerated]
		[AccessedThroughProperty("Label4")]
		private Label _Label4;

		[CompilerGenerated]
		[AccessedThroughProperty("txtLanguage")]
		private TextBox _txtLanguage;

		[CompilerGenerated]
		[AccessedThroughProperty("Label16")]
		private Label _Label16;

		[CompilerGenerated]
		[AccessedThroughProperty("txtPublisher")]
		private TextBox _txtPublisher;

		[CompilerGenerated]
		[AccessedThroughProperty("Label15")]
		private Label _Label15;

		[CompilerGenerated]
		[AccessedThroughProperty("txtTags")]
		private TextBox _txtTags;

		[CompilerGenerated]
		[AccessedThroughProperty("Label13")]
		private Label _Label13;

		[CompilerGenerated]
		[AccessedThroughProperty("txtAuthorSort")]
		private TextBox _txtAuthorSort;

		[CompilerGenerated]
		[AccessedThroughProperty("Label14")]
		private Label _Label14;

		[CompilerGenerated]
		[AccessedThroughProperty("Label17")]
		private Label _Label17;

		[CompilerGenerated]
		[AccessedThroughProperty("Label18")]
		private Label _Label18;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolTip1")]
		private ToolTip _ToolTip1;

		[CompilerGenerated]
		[AccessedThroughProperty("Label19")]
		private Label _Label19;

		[CompilerGenerated]
		[AccessedThroughProperty("txtTitleSort")]
		private TextBox _txtTitleSort;

		[CompilerGenerated]
		[AccessedThroughProperty("Label21")]
		private Label _Label21;

		[CompilerGenerated]
		[AccessedThroughProperty("Label20")]
		private Label _Label20;

		[CompilerGenerated]
		[AccessedThroughProperty("Label22")]
		private Label _Label22;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdAuthorToSort")]
		private Button _cmdAuthorToSort;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdTitleToSort")]
		private Button _cmdTitleToSort;

		[CompilerGenerated]
		[AccessedThroughProperty("txtMobiPrefix")]
		private TextBox _txtMobiPrefix;

		[CompilerGenerated]
		[AccessedThroughProperty("Label23")]
		private Label _Label23;

		[CompilerGenerated]
		[AccessedThroughProperty("txtEpubPrefix")]
		private TextBox _txtEpubPrefix;

		[CompilerGenerated]
		[AccessedThroughProperty("Label24")]
		private Label _Label24;

		private clsSettings cExporter;

		private clsProject cProjectLocal;

		[field: AccessedThroughProperty("Label1")]
		internal virtual Label Label1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("TabControl1")]
		internal virtual TabControl TabControl1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("TabPage1")]
		internal virtual TabPage TabPage1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("TabPage2")]
		internal virtual TabPage TabPage2
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("TabPage3")]
		internal virtual TabPage TabPage3
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("TabPage4")]
		internal virtual TabPage TabPage4
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual Button cmdCalibrePath
		{
			[CompilerGenerated]
			get
			{
				return _cmdCalibrePath;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdCalibrePath_Click;
				Button cmdCalibrePath = _cmdCalibrePath;
				if (cmdCalibrePath != null)
				{
					cmdCalibrePath.Click -= value2;
				}
				_cmdCalibrePath = value;
				cmdCalibrePath = _cmdCalibrePath;
				if (cmdCalibrePath != null)
				{
					cmdCalibrePath.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("txtCalibrePath")]
		internal virtual TextBox txtCalibrePath
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label2")]
		internal virtual Label Label2
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtMobiParam")]
		internal virtual TextBox txtMobiParam
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtEpubParam")]
		internal virtual TextBox txtEpubParam
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label5")]
		internal virtual Label Label5
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtExportName")]
		internal virtual TextBox txtExportName
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual Button cmdDelete
		{
			[CompilerGenerated]
			get
			{
				return _cmdDelete;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdDelete_Click;
				Button cmdDelete = _cmdDelete;
				if (cmdDelete != null)
				{
					cmdDelete.Click -= value2;
				}
				_cmdDelete = value;
				cmdDelete = _cmdDelete;
				if (cmdDelete != null)
				{
					cmdDelete.Click += value2;
				}
			}
		}

		internal virtual Button cmdSave
		{
			[CompilerGenerated]
			get
			{
				return _cmdSave;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdSave_Click;
				Button cmdSave = _cmdSave;
				if (cmdSave != null)
				{
					cmdSave.Click -= value2;
				}
				_cmdSave = value;
				cmdSave = _cmdSave;
				if (cmdSave != null)
				{
					cmdSave.Click += value2;
				}
			}
		}

		internal virtual Button cmdPickCover
		{
			[CompilerGenerated]
			get
			{
				return _cmdPickCover;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdPickCover_Click;
				Button cmdPickCover = _cmdPickCover;
				if (cmdPickCover != null)
				{
					cmdPickCover.Click -= value2;
				}
				_cmdPickCover = value;
				cmdPickCover = _cmdPickCover;
				if (cmdPickCover != null)
				{
					cmdPickCover.Click += value2;
				}
			}
		}

		internal virtual TextBox txtBlurb
		{
			[CompilerGenerated]
			get
			{
				return _txtBlurb;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = TextBox5_TextChanged;
				TextBox txtBlurb = _txtBlurb;
				if (txtBlurb != null)
				{
					txtBlurb.TextChanged -= value2;
				}
				_txtBlurb = value;
				txtBlurb = _txtBlurb;
				if (txtBlurb != null)
				{
					txtBlurb.TextChanged += value2;
				}
			}
		}

		[field: AccessedThroughProperty("Label10")]
		internal virtual Label Label10
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label9")]
		internal virtual Label Label9
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtCoverFile")]
		internal virtual TextBox txtCoverFile
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label8")]
		internal virtual Label Label8
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual TextBox txtAuthor
		{
			[CompilerGenerated]
			get
			{
				return _txtAuthor;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = txtAuthor_TextChanged;
				TextBox txtAuthor = _txtAuthor;
				if (txtAuthor != null)
				{
					txtAuthor.TextChanged -= value2;
				}
				_txtAuthor = value;
				txtAuthor = _txtAuthor;
				if (txtAuthor != null)
				{
					txtAuthor.TextChanged += value2;
				}
			}
		}

		[field: AccessedThroughProperty("Label7")]
		internal virtual Label Label7
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label6")]
		internal virtual Label Label6
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtTitle")]
		internal virtual TextBox txtTitle
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("dtPubDate")]
		internal virtual DateTimePicker dtPubDate
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label3")]
		internal virtual Label Label3
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ComboBox cmbExporters
		{
			[CompilerGenerated]
			get
			{
				return _cmbExporters;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmbSaved_SelectedIndexChanged;
				ComboBox cmbExporters = _cmbExporters;
				if (cmbExporters != null)
				{
					cmbExporters.SelectedIndexChanged -= value2;
				}
				_cmbExporters = value;
				cmbExporters = _cmbExporters;
				if (cmbExporters != null)
				{
					cmbExporters.SelectedIndexChanged += value2;
				}
			}
		}

		internal virtual Button cmdNew
		{
			[CompilerGenerated]
			get
			{
				return _cmdNew;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdNew_Click;
				Button cmdNew = _cmdNew;
				if (cmdNew != null)
				{
					cmdNew.Click -= value2;
				}
				_cmdNew = value;
				cmdNew = _cmdNew;
				if (cmdNew != null)
				{
					cmdNew.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("txtSeriesNumber")]
		internal virtual TextBox txtSeriesNumber
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label12")]
		internal virtual Label Label12
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtSeriesName")]
		internal virtual TextBox txtSeriesName
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label11")]
		internal virtual Label Label11
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtMobiISBN")]
		internal virtual TextBox txtMobiISBN
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("lblIsbn")]
		internal virtual Label lblIsbn
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtEpubISBN")]
		internal virtual TextBox txtEpubISBN
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label4")]
		internal virtual Label Label4
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtLanguage")]
		internal virtual TextBox txtLanguage
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label16")]
		internal virtual Label Label16
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtPublisher")]
		internal virtual TextBox txtPublisher
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label15")]
		internal virtual Label Label15
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtTags")]
		internal virtual TextBox txtTags
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label13")]
		internal virtual Label Label13
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtAuthorSort")]
		internal virtual TextBox txtAuthorSort
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label14")]
		internal virtual Label Label14
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label17")]
		internal virtual Label Label17
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label18")]
		internal virtual Label Label18
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ToolTip1")]
		internal virtual ToolTip ToolTip1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label19")]
		internal virtual Label Label19
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtTitleSort")]
		internal virtual TextBox txtTitleSort
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual Label Label21
		{
			[CompilerGenerated]
			get
			{
				return _Label21;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = Label21_Click;
				Label label = _Label21;
				if (label != null)
				{
					label.Click -= value2;
				}
				_Label21 = value;
				label = _Label21;
				if (label != null)
				{
					label.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("Label20")]
		internal virtual Label Label20
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label22")]
		internal virtual Label Label22
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual Button cmdAuthorToSort
		{
			[CompilerGenerated]
			get
			{
				return _cmdAuthorToSort;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdAuthorToSort_Click;
				Button cmdAuthorToSort = _cmdAuthorToSort;
				if (cmdAuthorToSort != null)
				{
					cmdAuthorToSort.Click -= value2;
				}
				_cmdAuthorToSort = value;
				cmdAuthorToSort = _cmdAuthorToSort;
				if (cmdAuthorToSort != null)
				{
					cmdAuthorToSort.Click += value2;
				}
			}
		}

		internal virtual Button cmdTitleToSort
		{
			[CompilerGenerated]
			get
			{
				return _cmdTitleToSort;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdTitleToSort_Click;
				Button cmdTitleToSort = _cmdTitleToSort;
				if (cmdTitleToSort != null)
				{
					cmdTitleToSort.Click -= value2;
				}
				_cmdTitleToSort = value;
				cmdTitleToSort = _cmdTitleToSort;
				if (cmdTitleToSort != null)
				{
					cmdTitleToSort.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("txtMobiPrefix")]
		internal virtual TextBox txtMobiPrefix
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label23")]
		internal virtual Label Label23
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtEpubPrefix")]
		internal virtual TextBox txtEpubPrefix
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label24")]
		internal virtual Label Label24
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[DebuggerNonUserCode]
		protected override void Dispose(bool disposing)
		{
			try
			{
				if (disposing && components != null)
				{
					components.Dispose();
				}
			}
			finally
			{
				base.Dispose(disposing);
			}
		}

		[System.Diagnostics.DebuggerStepThrough]
		private void InitializeComponent()
		{
			components = new System.ComponentModel.Container();
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(yWriter6.frmMobiEpub));
			Label1 = new System.Windows.Forms.Label();
			TabControl1 = new System.Windows.Forms.TabControl();
			TabPage1 = new System.Windows.Forms.TabPage();
			cmdAuthorToSort = new System.Windows.Forms.Button();
			cmdTitleToSort = new System.Windows.Forms.Button();
			txtLanguage = new System.Windows.Forms.TextBox();
			Label16 = new System.Windows.Forms.Label();
			txtPublisher = new System.Windows.Forms.TextBox();
			Label15 = new System.Windows.Forms.Label();
			txtTags = new System.Windows.Forms.TextBox();
			Label13 = new System.Windows.Forms.Label();
			txtSeriesNumber = new System.Windows.Forms.TextBox();
			Label12 = new System.Windows.Forms.Label();
			txtSeriesName = new System.Windows.Forms.TextBox();
			Label11 = new System.Windows.Forms.Label();
			dtPubDate = new System.Windows.Forms.DateTimePicker();
			cmdPickCover = new System.Windows.Forms.Button();
			txtBlurb = new System.Windows.Forms.TextBox();
			Label10 = new System.Windows.Forms.Label();
			Label9 = new System.Windows.Forms.Label();
			txtCoverFile = new System.Windows.Forms.TextBox();
			Label8 = new System.Windows.Forms.Label();
			txtAuthorSort = new System.Windows.Forms.TextBox();
			txtAuthor = new System.Windows.Forms.TextBox();
			Label14 = new System.Windows.Forms.Label();
			Label7 = new System.Windows.Forms.Label();
			Label19 = new System.Windows.Forms.Label();
			Label6 = new System.Windows.Forms.Label();
			txtTitleSort = new System.Windows.Forms.TextBox();
			txtTitle = new System.Windows.Forms.TextBox();
			TabPage3 = new System.Windows.Forms.TabPage();
			Label17 = new System.Windows.Forms.Label();
			txtMobiPrefix = new System.Windows.Forms.TextBox();
			txtMobiISBN = new System.Windows.Forms.TextBox();
			Label23 = new System.Windows.Forms.Label();
			lblIsbn = new System.Windows.Forms.Label();
			txtMobiParam = new System.Windows.Forms.TextBox();
			TabPage4 = new System.Windows.Forms.TabPage();
			Label18 = new System.Windows.Forms.Label();
			txtEpubPrefix = new System.Windows.Forms.TextBox();
			Label24 = new System.Windows.Forms.Label();
			txtEpubISBN = new System.Windows.Forms.TextBox();
			Label4 = new System.Windows.Forms.Label();
			txtEpubParam = new System.Windows.Forms.TextBox();
			TabPage2 = new System.Windows.Forms.TabPage();
			Label21 = new System.Windows.Forms.Label();
			Label22 = new System.Windows.Forms.Label();
			Label20 = new System.Windows.Forms.Label();
			cmdCalibrePath = new System.Windows.Forms.Button();
			txtCalibrePath = new System.Windows.Forms.TextBox();
			Label2 = new System.Windows.Forms.Label();
			Label5 = new System.Windows.Forms.Label();
			txtExportName = new System.Windows.Forms.TextBox();
			cmdDelete = new System.Windows.Forms.Button();
			cmdSave = new System.Windows.Forms.Button();
			Label3 = new System.Windows.Forms.Label();
			cmbExporters = new System.Windows.Forms.ComboBox();
			cmdNew = new System.Windows.Forms.Button();
			ToolTip1 = new System.Windows.Forms.ToolTip(components);
			TabControl1.SuspendLayout();
			TabPage1.SuspendLayout();
			TabPage3.SuspendLayout();
			TabPage4.SuspendLayout();
			TabPage2.SuspendLayout();
			SuspendLayout();
			Label1.Location = new System.Drawing.Point(37, 24);
			Label1.Name = "Label1";
			Label1.Size = new System.Drawing.Size(698, 54);
			Label1.TabIndex = 0;
			Label1.Text = "You can set up multiple exporters per project. For example, an anthology could be exported as one book, and you could also set up exporters for individual chapters (stories)";
			TabControl1.Controls.Add(TabPage1);
			TabControl1.Controls.Add(TabPage3);
			TabControl1.Controls.Add(TabPage4);
			TabControl1.Controls.Add(TabPage2);
			TabControl1.Location = new System.Drawing.Point(30, 126);
			TabControl1.Name = "TabControl1";
			TabControl1.SelectedIndex = 0;
			TabControl1.Size = new System.Drawing.Size(775, 408);
			TabControl1.TabIndex = 3;
			TabPage1.Controls.Add(cmdAuthorToSort);
			TabPage1.Controls.Add(cmdTitleToSort);
			TabPage1.Controls.Add(txtLanguage);
			TabPage1.Controls.Add(Label16);
			TabPage1.Controls.Add(txtPublisher);
			TabPage1.Controls.Add(Label15);
			TabPage1.Controls.Add(txtTags);
			TabPage1.Controls.Add(Label13);
			TabPage1.Controls.Add(txtSeriesNumber);
			TabPage1.Controls.Add(Label12);
			TabPage1.Controls.Add(txtSeriesName);
			TabPage1.Controls.Add(Label11);
			TabPage1.Controls.Add(dtPubDate);
			TabPage1.Controls.Add(cmdPickCover);
			TabPage1.Controls.Add(txtBlurb);
			TabPage1.Controls.Add(Label10);
			TabPage1.Controls.Add(Label9);
			TabPage1.Controls.Add(txtCoverFile);
			TabPage1.Controls.Add(Label8);
			TabPage1.Controls.Add(txtAuthorSort);
			TabPage1.Controls.Add(txtAuthor);
			TabPage1.Controls.Add(Label14);
			TabPage1.Controls.Add(Label7);
			TabPage1.Controls.Add(Label19);
			TabPage1.Controls.Add(Label6);
			TabPage1.Controls.Add(txtTitleSort);
			TabPage1.Controls.Add(txtTitle);
			TabPage1.Location = new System.Drawing.Point(4, 26);
			TabPage1.Name = "TabPage1";
			TabPage1.Padding = new System.Windows.Forms.Padding(3);
			TabPage1.Size = new System.Drawing.Size(767, 378);
			TabPage1.TabIndex = 0;
			TabPage1.Text = "Ebook Settings";
			TabPage1.UseVisualStyleBackColor = true;
			cmdAuthorToSort.FlatStyle = System.Windows.Forms.FlatStyle.System;
			cmdAuthorToSort.Location = new System.Drawing.Point(367, 59);
			cmdAuthorToSort.Name = "cmdAuthorToSort";
			cmdAuthorToSort.Size = new System.Drawing.Size(27, 23);
			cmdAuthorToSort.TabIndex = 29;
			cmdAuthorToSort.Text = ">";
			cmdAuthorToSort.UseVisualStyleBackColor = true;
			cmdTitleToSort.FlatStyle = System.Windows.Forms.FlatStyle.System;
			cmdTitleToSort.Location = new System.Drawing.Point(367, 28);
			cmdTitleToSort.Name = "cmdTitleToSort";
			cmdTitleToSort.Size = new System.Drawing.Size(27, 23);
			cmdTitleToSort.TabIndex = 29;
			cmdTitleToSort.Text = ">";
			cmdTitleToSort.UseVisualStyleBackColor = true;
			txtLanguage.Location = new System.Drawing.Point(456, 171);
			txtLanguage.Name = "txtLanguage";
			txtLanguage.Size = new System.Drawing.Size(217, 25);
			txtLanguage.TabIndex = 28;
			txtLanguage.Text = "English";
			Label16.AutoSize = true;
			Label16.Location = new System.Drawing.Point(380, 174);
			Label16.Name = "Label16";
			Label16.Size = new System.Drawing.Size(72, 19);
			Label16.TabIndex = 27;
			Label16.Text = "Language:";
			txtPublisher.Location = new System.Drawing.Point(132, 171);
			txtPublisher.Name = "txtPublisher";
			txtPublisher.Size = new System.Drawing.Size(217, 25);
			txtPublisher.TabIndex = 28;
			txtPublisher.Text = "Bowman Press";
			ToolTip1.SetToolTip(txtPublisher, "Use the author's name if none");
			Label15.AutoSize = true;
			Label15.Location = new System.Drawing.Point(56, 174);
			Label15.Name = "Label15";
			Label15.Size = new System.Drawing.Size(68, 19);
			Label15.TabIndex = 27;
			Label15.Text = "Publisher:";
			txtTags.Location = new System.Drawing.Point(132, 202);
			txtTags.Name = "txtTags";
			txtTags.Size = new System.Drawing.Size(541, 25);
			txtTags.TabIndex = 28;
			txtTags.Text = "science fiction,comedy,series,humor,humour,spacejock,series,novel,scifi,sci-fi,comedy novel,science fiction comedy";
			ToolTip1.SetToolTip(txtTags, "Separate with commas");
			Label13.AutoSize = true;
			Label13.Location = new System.Drawing.Point(86, 205);
			Label13.Name = "Label13";
			Label13.Size = new System.Drawing.Size(38, 19);
			Label13.TabIndex = 27;
			Label13.Text = "Tags:";
			txtSeriesNumber.Location = new System.Drawing.Point(617, 124);
			txtSeriesNumber.Name = "txtSeriesNumber";
			txtSeriesNumber.Size = new System.Drawing.Size(56, 25);
			txtSeriesNumber.TabIndex = 26;
			txtSeriesNumber.Text = "8";
			ToolTip1.SetToolTip(txtSeriesNumber, "Leave blank if not part of a series");
			Label12.AutoSize = true;
			Label12.Location = new System.Drawing.Point(549, 127);
			Label12.Name = "Label12";
			Label12.Size = new System.Drawing.Size(62, 19);
			Label12.TabIndex = 25;
			Label12.Text = "Number:";
			txtSeriesName.Location = new System.Drawing.Point(355, 124);
			txtSeriesName.Name = "txtSeriesName";
			txtSeriesName.Size = new System.Drawing.Size(154, 25);
			txtSeriesName.TabIndex = 26;
			txtSeriesName.Text = "Hal Spacejock";
			ToolTip1.SetToolTip(txtSeriesName, "Leave blank if not part of a series");
			Label11.AutoSize = true;
			Label11.Location = new System.Drawing.Point(262, 127);
			Label11.Name = "Label11";
			Label11.Size = new System.Drawing.Size(87, 19);
			Label11.TabIndex = 25;
			Label11.Text = "Series Name:";
			dtPubDate.Format = System.Windows.Forms.DateTimePickerFormat.Short;
			dtPubDate.Location = new System.Drawing.Point(132, 125);
			dtPubDate.Name = "dtPubDate";
			dtPubDate.Size = new System.Drawing.Size(119, 25);
			dtPubDate.TabIndex = 24;
			dtPubDate.Value = new System.DateTime(2018, 3, 15, 0, 0, 0, 0);
			cmdPickCover.Location = new System.Drawing.Point(690, 89);
			cmdPickCover.Name = "cmdPickCover";
			cmdPickCover.Size = new System.Drawing.Size(55, 25);
			cmdPickCover.TabIndex = 23;
			cmdPickCover.Text = ". . .";
			cmdPickCover.UseVisualStyleBackColor = true;
			txtBlurb.Location = new System.Drawing.Point(132, 233);
			txtBlurb.Multiline = true;
			txtBlurb.Name = "txtBlurb";
			txtBlurb.Size = new System.Drawing.Size(541, 89);
			txtBlurb.TabIndex = 22;
			txtBlurb.Text = resources.GetString("txtBlurb.Text");
			Label10.AutoSize = true;
			Label10.Location = new System.Drawing.Point(80, 233);
			Label10.Name = "Label10";
			Label10.Size = new System.Drawing.Size(44, 19);
			Label10.TabIndex = 21;
			Label10.Text = "Blurb:";
			Label9.AutoSize = true;
			Label9.Location = new System.Drawing.Point(12, 127);
			Label9.Name = "Label9";
			Label9.Size = new System.Drawing.Size(112, 19);
			Label9.TabIndex = 19;
			Label9.Text = "Publication Date:";
			txtCoverFile.Location = new System.Drawing.Point(132, 90);
			txtCoverFile.Name = "txtCoverFile";
			txtCoverFile.Size = new System.Drawing.Size(541, 25);
			txtCoverFile.TabIndex = 18;
			txtCoverFile.Text = "C:\\My Documents\\B - Publishing\\Cover - Hal\\Hal 08.jpg";
			ToolTip1.SetToolTip(txtCoverFile, "Link to the exact file you wish to use");
			Label8.AutoSize = true;
			Label8.Location = new System.Drawing.Point(55, 93);
			Label8.Name = "Label8";
			Label8.Size = new System.Drawing.Size(69, 19);
			Label8.TabIndex = 17;
			Label8.Text = "Cover file:";
			txtAuthorSort.Location = new System.Drawing.Point(448, 59);
			txtAuthorSort.Name = "txtAuthorSort";
			txtAuthorSort.Size = new System.Drawing.Size(225, 25);
			txtAuthorSort.TabIndex = 16;
			txtAuthorSort.Text = "Haynes, Simon";
			ToolTip1.SetToolTip(txtAuthorSort, "Author's surname, Authors first names");
			txtAuthor.Location = new System.Drawing.Point(132, 59);
			txtAuthor.Name = "txtAuthor";
			txtAuthor.Size = new System.Drawing.Size(226, 25);
			txtAuthor.TabIndex = 16;
			txtAuthor.Text = "Simon Haynes";
			ToolTip1.SetToolTip(txtAuthor, "First names, Surname");
			Label14.AutoSize = true;
			Label14.Location = new System.Drawing.Point(400, 62);
			Label14.Name = "Label14";
			Label14.Size = new System.Drawing.Size(37, 19);
			Label14.TabIndex = 15;
			Label14.Text = "Sort:";
			Label7.AutoSize = true;
			Label7.Location = new System.Drawing.Point(69, 62);
			Label7.Name = "Label7";
			Label7.Size = new System.Drawing.Size(55, 19);
			Label7.TabIndex = 15;
			Label7.Text = "Author:";
			Label19.AutoSize = true;
			Label19.Location = new System.Drawing.Point(400, 31);
			Label19.Name = "Label19";
			Label19.Size = new System.Drawing.Size(37, 19);
			Label19.TabIndex = 14;
			Label19.Text = "Sort:";
			Label6.AutoSize = true;
			Label6.Location = new System.Drawing.Point(87, 31);
			Label6.Name = "Label6";
			Label6.Size = new System.Drawing.Size(37, 19);
			Label6.TabIndex = 14;
			Label6.Text = "Title:";
			txtTitleSort.Location = new System.Drawing.Point(448, 28);
			txtTitleSort.Name = "txtTitleSort";
			txtTitleSort.Size = new System.Drawing.Size(225, 25);
			txtTitleSort.TabIndex = 13;
			txtTitleSort.Text = "Hal Spacejock 8: Double Trouble";
			ToolTip1.SetToolTip(txtTitleSort, "If your title starts with 'The' or 'A', repeat it here with ',The' or ',A' at the end");
			txtTitle.Location = new System.Drawing.Point(132, 28);
			txtTitle.Name = "txtTitle";
			txtTitle.Size = new System.Drawing.Size(226, 25);
			txtTitle.TabIndex = 13;
			txtTitle.Text = "Hal Spacejock 8: Double Trouble";
			ToolTip1.SetToolTip(txtTitle, "Display title for the book");
			TabPage3.Controls.Add(Label17);
			TabPage3.Controls.Add(txtMobiPrefix);
			TabPage3.Controls.Add(txtMobiISBN);
			TabPage3.Controls.Add(Label23);
			TabPage3.Controls.Add(lblIsbn);
			TabPage3.Controls.Add(txtMobiParam);
			TabPage3.Location = new System.Drawing.Point(4, 26);
			TabPage3.Name = "TabPage3";
			TabPage3.Padding = new System.Windows.Forms.Padding(3);
			TabPage3.Size = new System.Drawing.Size(767, 378);
			TabPage3.TabIndex = 2;
			TabPage3.Text = "Mobi setup";
			TabPage3.UseVisualStyleBackColor = true;
			Label17.AutoSize = true;
			Label17.Location = new System.Drawing.Point(27, 163);
			Label17.Name = "Label17";
			Label17.Size = new System.Drawing.Size(250, 19);
			Label17.TabIndex = 19;
			Label17.Text = "Additional MOBI commandline options:";
			Label17.TextAlign = System.Drawing.ContentAlignment.TopRight;
			txtMobiPrefix.Location = new System.Drawing.Point(292, 71);
			txtMobiPrefix.Name = "txtMobiPrefix";
			txtMobiPrefix.ReadOnly = true;
			txtMobiPrefix.Size = new System.Drawing.Size(169, 25);
			txtMobiPrefix.TabIndex = 18;
			txtMobiPrefix.Text = "MOBI_";
			ToolTip1.SetToolTip(txtMobiPrefix, "Variables with this prefix will only be used when exporting to MOBI");
			txtMobiISBN.Location = new System.Drawing.Point(292, 113);
			txtMobiISBN.Name = "txtMobiISBN";
			txtMobiISBN.Size = new System.Drawing.Size(169, 25);
			txtMobiISBN.TabIndex = 18;
			ToolTip1.SetToolTip(txtMobiISBN, "Leave blank if you don't have one");
			Label23.AutoSize = true;
			Label23.Location = new System.Drawing.Point(139, 74);
			Label23.Name = "Label23";
			Label23.Size = new System.Drawing.Size(138, 19);
			Label23.TabIndex = 17;
			Label23.Text = "Mobi variables prefix:";
			Label23.TextAlign = System.Drawing.ContentAlignment.TopRight;
			lblIsbn.AutoSize = true;
			lblIsbn.Location = new System.Drawing.Point(153, 116);
			lblIsbn.Name = "lblIsbn";
			lblIsbn.Size = new System.Drawing.Size(124, 19);
			lblIsbn.TabIndex = 17;
			lblIsbn.Text = "Mobi specific ISBN:";
			lblIsbn.TextAlign = System.Drawing.ContentAlignment.TopRight;
			txtMobiParam.Location = new System.Drawing.Point(292, 160);
			txtMobiParam.Multiline = true;
			txtMobiParam.Name = "txtMobiParam";
			txtMobiParam.Size = new System.Drawing.Size(370, 128);
			txtMobiParam.TabIndex = 0;
			txtMobiParam.Text = "--input-profile=default --output-profile=kindle --disable-font-rescaling --change-justification=\"justify\" --mobi-ignore-margins  --toc-filter=\"Unnamed\"";
			ToolTip1.SetToolTip(txtMobiParam, "These are Calibre command line options. Don't change this unless you know what you're doing.");
			TabPage4.Controls.Add(Label18);
			TabPage4.Controls.Add(txtEpubPrefix);
			TabPage4.Controls.Add(Label24);
			TabPage4.Controls.Add(txtEpubISBN);
			TabPage4.Controls.Add(Label4);
			TabPage4.Controls.Add(txtEpubParam);
			TabPage4.Location = new System.Drawing.Point(4, 26);
			TabPage4.Name = "TabPage4";
			TabPage4.Padding = new System.Windows.Forms.Padding(3);
			TabPage4.Size = new System.Drawing.Size(767, 378);
			TabPage4.TabIndex = 3;
			TabPage4.Text = "Epub setup";
			TabPage4.UseVisualStyleBackColor = true;
			Label18.AutoSize = true;
			Label18.Location = new System.Drawing.Point(31, 164);
			Label18.Name = "Label18";
			Label18.Size = new System.Drawing.Size(247, 19);
			Label18.TabIndex = 20;
			Label18.Text = "Additional EPUB commandline options:";
			Label18.TextAlign = System.Drawing.ContentAlignment.TopRight;
			txtEpubPrefix.Location = new System.Drawing.Point(293, 74);
			txtEpubPrefix.Name = "txtEpubPrefix";
			txtEpubPrefix.ReadOnly = true;
			txtEpubPrefix.Size = new System.Drawing.Size(169, 25);
			txtEpubPrefix.TabIndex = 18;
			txtEpubPrefix.Text = "EPUB_";
			Label24.AutoSize = true;
			Label24.Location = new System.Drawing.Point(141, 77);
			Label24.Name = "Label24";
			Label24.Size = new System.Drawing.Size(137, 19);
			Label24.TabIndex = 17;
			Label24.Text = "Epub variables prefix:";
			Label24.TextAlign = System.Drawing.ContentAlignment.TopRight;
			txtEpubISBN.Location = new System.Drawing.Point(293, 116);
			txtEpubISBN.Name = "txtEpubISBN";
			txtEpubISBN.Size = new System.Drawing.Size(169, 25);
			txtEpubISBN.TabIndex = 18;
			ToolTip1.SetToolTip(txtEpubISBN, "Leave blank if you don't have one");
			Label4.AutoSize = true;
			Label4.Location = new System.Drawing.Point(155, 119);
			Label4.Name = "Label4";
			Label4.Size = new System.Drawing.Size(123, 19);
			Label4.TabIndex = 17;
			Label4.Text = "Epub specific ISBN:";
			Label4.TextAlign = System.Drawing.ContentAlignment.TopRight;
			txtEpubParam.Location = new System.Drawing.Point(293, 164);
			txtEpubParam.Multiline = true;
			txtEpubParam.Name = "txtEpubParam";
			txtEpubParam.Size = new System.Drawing.Size(370, 117);
			txtEpubParam.TabIndex = 1;
			txtEpubParam.Text = "--input-profile=default --output-profile=kobo --disable-font-rescaling --no-default-epub-cover --flow-size=260 --change-justification=\"justify\" --toc-filter=\"Unnamed\"";
			ToolTip1.SetToolTip(txtEpubParam, "These are Calibre command line options. Don't change this unless you know what you're doing.");
			TabPage2.Controls.Add(Label21);
			TabPage2.Controls.Add(Label22);
			TabPage2.Controls.Add(Label20);
			TabPage2.Controls.Add(cmdCalibrePath);
			TabPage2.Controls.Add(txtCalibrePath);
			TabPage2.Controls.Add(Label2);
			TabPage2.Location = new System.Drawing.Point(4, 26);
			TabPage2.Name = "TabPage2";
			TabPage2.Padding = new System.Windows.Forms.Padding(3);
			TabPage2.Size = new System.Drawing.Size(767, 378);
			TabPage2.TabIndex = 1;
			TabPage2.Text = "Calibre Setup";
			TabPage2.UseVisualStyleBackColor = true;
			Label21.AutoSize = true;
			Label21.Font = new System.Drawing.Font("Segoe UI", 9.75f, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, 0);
			Label21.ForeColor = System.Drawing.SystemColors.MenuHighlight;
			Label21.Location = new System.Drawing.Point(156, 138);
			Label21.Name = "Label21";
			Label21.Size = new System.Drawing.Size(335, 17);
			Label21.TabIndex = 3;
			Label21.Text = "You can download Calibre at https://calibre-ebook.com/";
			Label22.AutoSize = true;
			Label22.Location = new System.Drawing.Point(156, 175);
			Label22.Name = "Label22";
			Label22.Size = new System.Drawing.Size(224, 19);
			Label22.TabIndex = 3;
			Label22.Text = "Calibre is free to download and use";
			Label20.AutoSize = true;
			Label20.Location = new System.Drawing.Point(156, 104);
			Label20.Name = "Label20";
			Label20.Size = new System.Drawing.Size(462, 19);
			Label20.TabIndex = 3;
			Label20.Text = "yWriter runs Calibre's 'ebook-convert.exe' to generate epub and mobi files";
			cmdCalibrePath.Location = new System.Drawing.Point(494, 52);
			cmdCalibrePath.Name = "cmdCalibrePath";
			cmdCalibrePath.Size = new System.Drawing.Size(75, 31);
			cmdCalibrePath.TabIndex = 2;
			cmdCalibrePath.Text = ". . .";
			cmdCalibrePath.UseVisualStyleBackColor = true;
			txtCalibrePath.Location = new System.Drawing.Point(160, 56);
			txtCalibrePath.Name = "txtCalibrePath";
			txtCalibrePath.Size = new System.Drawing.Size(319, 25);
			txtCalibrePath.TabIndex = 1;
			txtCalibrePath.Text = "C:\\Program Files (x86)\\Calibre2";
			Label2.AutoSize = true;
			Label2.Location = new System.Drawing.Point(40, 59);
			Label2.Name = "Label2";
			Label2.Size = new System.Drawing.Size(103, 19);
			Label2.TabIndex = 0;
			Label2.Text = "Path to Calibre:";
			Label5.AutoSize = true;
			Label5.Location = new System.Drawing.Point(43, 556);
			Label5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
			Label5.Name = "Label5";
			Label5.Size = new System.Drawing.Size(103, 19);
			Label5.TabIndex = 13;
			Label5.Text = "Exporter Name:";
			txtExportName.Location = new System.Drawing.Point(150, 553);
			txtExportName.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
			txtExportName.Name = "txtExportName";
			txtExportName.Size = new System.Drawing.Size(228, 25);
			txtExportName.TabIndex = 10;
			cmdDelete.FlatStyle = System.Windows.Forms.FlatStyle.System;
			cmdDelete.Location = new System.Drawing.Point(556, 81);
			cmdDelete.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
			cmdDelete.Name = "cmdDelete";
			cmdDelete.Size = new System.Drawing.Size(77, 23);
			cmdDelete.TabIndex = 7;
			cmdDelete.Text = "Delete";
			cmdDelete.UseVisualStyleBackColor = true;
			cmdSave.Location = new System.Drawing.Point(383, 549);
			cmdSave.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
			cmdSave.Name = "cmdSave";
			cmdSave.Size = new System.Drawing.Size(65, 31);
			cmdSave.TabIndex = 8;
			cmdSave.Text = "Save";
			cmdSave.UseVisualStyleBackColor = true;
			Label3.AutoSize = true;
			Label3.Location = new System.Drawing.Point(33, 84);
			Label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
			Label3.Name = "Label3";
			Label3.Size = new System.Drawing.Size(113, 19);
			Label3.TabIndex = 15;
			Label3.Text = "Choose Exporter:";
			cmbExporters.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			cmbExporters.FormattingEnabled = true;
			cmbExporters.Location = new System.Drawing.Point(150, 81);
			cmbExporters.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
			cmbExporters.Name = "cmbExporters";
			cmbExporters.Size = new System.Drawing.Size(269, 25);
			cmbExporters.TabIndex = 14;
			cmdNew.FlatStyle = System.Windows.Forms.FlatStyle.System;
			cmdNew.Location = new System.Drawing.Point(445, 81);
			cmdNew.Name = "cmdNew";
			cmdNew.Size = new System.Drawing.Size(75, 23);
			cmdNew.TabIndex = 16;
			cmdNew.Text = "New";
			cmdNew.UseVisualStyleBackColor = true;
			base.AutoScaleDimensions = new System.Drawing.SizeF(7f, 17f);
			base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			base.ClientSize = new System.Drawing.Size(836, 599);
			base.Controls.Add(cmdNew);
			base.Controls.Add(Label3);
			base.Controls.Add(cmbExporters);
			base.Controls.Add(Label5);
			base.Controls.Add(txtExportName);
			base.Controls.Add(cmdDelete);
			base.Controls.Add(cmdSave);
			base.Controls.Add(TabControl1);
			base.Controls.Add(Label1);
			Font = new System.Drawing.Font("Segoe UI", 10f);
			base.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
			base.Name = "frmMobiEpub";
			Text = "Export to Mobi and Epub";
			TabControl1.ResumeLayout(false);
			TabPage1.ResumeLayout(false);
			TabPage1.PerformLayout();
			TabPage3.ResumeLayout(false);
			TabPage3.PerformLayout();
			TabPage4.ResumeLayout(false);
			TabPage4.PerformLayout();
			TabPage2.ResumeLayout(false);
			TabPage2.PerformLayout();
			ResumeLayout(false);
			PerformLayout();
		}

		public frmMobiEpub(ref clsProject cProject)
		{
			base.Load += frmMobiEpub_Load;
			cExporter = new clsSettings(ref clsShared.cLog);
			InitializeComponent();
			cProjectLocal = cProject;
			NewExporter();
		}

		private void cmdDelete_Click(object sender, EventArgs e)
		{
			Interaction.MsgBox("Are you sure you want to delete this export setup?", MsgBoxStyle.YesNo);
			_ = 6;
		}

		public void DisplayExporter(string ExporterTitle)
		{
			ComboBox cmbExporters = this.cmbExporters;
			clsEpub.SetExporterIndex(ExporterTitle, ref cmbExporters);
			this.cmbExporters = cmbExporters;
		}

		private void TextBox5_TextChanged(object sender, EventArgs e)
		{
		}

		private void cmdSave_Click(object sender, EventArgs e)
		{
			string StringToClean = txtExportName.Text;
			clsShared.cFile.CleanString(ref StringToClean);
			if (StringToClean.Length == 0)
			{
				Interaction.MsgBox("Please specify a name for this exporter");
				return;
			}
			cExporter.sSet("ExportName", StringToClean);
			FormToData();
			string settingsFile = clsEpub.CreateFilenameFromExportName(StringToClean);
			cExporter.SaveSettings(settingsFile);
		}

		private void cmdNew_Click(object sender, EventArgs e)
		{
			NewExporter();
		}

		private void NewExporter()
		{
			cExporter.DeleteAllSettings();
			DataToForm();
			txtBlurb.Text = cProjectLocal.DescText;
			txtAuthor.Text = cProjectLocal.AuthorName;
			txtTitle.Text = cProjectLocal.Title;
			txtAuthorSort.Text = NameToSort(txtAuthor.Text);
		}

		private void Label21_Click(object sender, EventArgs e)
		{
			clsShared.cWWW.WebSiteVisit("https://calibre-ebook.com/");
		}

		private void cmdTitleToSort_Click(object sender, EventArgs e)
		{
			txtTitleSort.Text = txtTitle.Text;
		}

		private void cmdAuthorToSort_Click(object sender, EventArgs e)
		{
			string text = txtAuthor.Text.Trim();
			if (text.Contains(" "))
			{
				txtAuthorSort.Text = NameToSort(text);
			}
			else
			{
				txtAuthorSort.Text = text;
			}
		}

		public string NameToSort(string strAuthor)
		{
			return strAuthor;
		}

		private void cmdPickCover_Click(object sender, EventArgs e)
		{
			string text = "";
			string defaultPath = clsShared.cSettings.sGet("CoverPathPrevious", MyProject.Computer.FileSystem.SpecialDirectories.MyDocuments);
			text = new clsFileSel(ref clsShared.cLog).GetFileWithFilter(defaultPath, "Coverfile.jpg", "Select a cover file (jpg, png)", "*.jpg|*.png", "Image Files|*.jpg;*.png");
			if (text.Length > 0)
			{
				txtCoverFile.Text = text;
				clsShared.cSettings.sSet("CoverPathPrevious", clsShared.cFile.PathOnly(text));
			}
		}

		private void cmdCalibrePath_Click(object sender, EventArgs e)
		{
			string text = "";
			string defaultPath = clsShared.cSettings.sGet("CalibrePathPrevious", MyProject.Computer.FileSystem.SpecialDirectories.MyDocuments);
			text = new clsFileSel(ref clsShared.cLog).GetFileWithFilter(defaultPath, "Calibre.exe", "Locate Calibre.exe", "Calibre.exe", "Calibre exe file|Calibre.exe");
			if (text.Length > 0)
			{
				txtCalibrePath.Text = clsShared.cFile.PathOnly(text);
				clsShared.cSettings.sSet("CalibrePathPrevious", clsShared.cFile.PathOnly(text));
			}
		}

		private void txtAuthor_TextChanged(object sender, EventArgs e)
		{
		}

		private void frmMobiEpub_Load(object sender, EventArgs e)
		{
		}

		private void FormToData()
		{
			cExporter.sSet("Title", txtTitle.Text);
			cExporter.sSet("TitleSort", txtTitleSort.Text);
			cExporter.sSet("Author", txtAuthor.Text);
			cExporter.sSet("AuthorSort", txtAuthorSort.Text);
			cExporter.sSet("Publisher", txtPublisher.Text);
			cExporter.sSet("MobiISBN", txtMobiISBN.Text);
			cExporter.sSet("EpubISBN", txtEpubISBN.Text);
			cExporter.sSet("Blurb", txtBlurb.Text);
			cExporter.sSet("EpubParam", txtEpubParam.Text);
			cExporter.sSet("MobiParam", txtMobiParam.Text);
			cExporter.sSet("PubDate", dtPubDate.Value);
			cExporter.sSet("CoverFile", txtCoverFile.Text);
			cExporter.sSet("Language", txtLanguage.Text);
			cExporter.sSet("SeriesName", txtSeriesName.Text);
			cExporter.sSet("SeriesNumber", txtSeriesNumber.Text);
			cExporter.sSet("Tags", txtTags.Text);
			cExporter.sSet("MobiVarPrefix", txtMobiPrefix.Text);
			cExporter.sSet("EpubVarPrefix", txtEpubPrefix.Text);
			clsShared.cSettings.sSet("CalibrePath", txtCalibrePath.Text);
		}

		private void DataToForm()
		{
			try
			{
				clsProject cProject = cProjectLocal;
				ComboBox cmbExporters = this.cmbExporters;
				clsEpub.FillExporterCombo(cProject, ref cmbExporters, "");
				this.cmbExporters = cmbExporters;
				txtExportName.Text = cExporter.sGet("ExportName", "");
				txtTitle.Text = cExporter.sGet("Title", "The Book Title");
				txtTitleSort.Text = cExporter.sGet("TitleSort", "Book Title,The");
				txtAuthor.Text = cExporter.sGet("Author", "First Last");
				txtAuthorSort.Text = cExporter.sGet("AuthorSort", "Last,First");
				txtPublisher.Text = cExporter.sGet("Publisher", txtAuthor.Text);
				txtMobiISBN.Text = cExporter.sGet("MobiISBN", "");
				txtEpubISBN.Text = cExporter.sGet("EpubISBN", "");
				txtBlurb.Text = cExporter.sGet("Blurb", "");
				txtEpubParam.Text = cExporter.sGet("EpubParam", clsEpub.strDefaultEpubParam);
				txtMobiParam.Text = cExporter.sGet("MobiParam", clsEpub.strDefaultMobiParam);
				dtPubDate.Value = cExporter.sGet("PubDate", DateAndTime.Now.Date);
				txtCoverFile.Text = cExporter.sGet("CoverFile", "");
				txtLanguage.Text = cExporter.sGet("Language", "English");
				txtSeriesName.Text = cExporter.sGet("SeriesName", "");
				txtSeriesNumber.Text = cExporter.sGet("SeriesNumber", "");
				txtTags.Text = cExporter.sGet("Tags", "");
				txtMobiPrefix.Text = cExporter.sGet("MobiVarPrefix", "MOBI_");
				txtEpubPrefix.Text = cExporter.sGet("EpubVarPrefix", "EPUB_");
				txtCalibrePath.Text = clsShared.cSettings.sGet("CalibrePath", "C:\\Program Files (x86)\\Calibre2\\");
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void cmbSaved_SelectedIndexChanged(object sender, EventArgs e)
		{
			string text = cmbExporters.Text;
			if (Operators.CompareString(text, txtExportName.Text, TextCompare: false) != 0)
			{
				string settingsFile = clsEpub.CreateFilenameFromExportName(text);
				cExporter.LoadSettings(settingsFile);
				DataToForm();
			}
		}
	}
}
